answer "The NameLock of “" & appname & "” is" && it & "."
else
answer it with "Sorry"
end if
end mouseUp
-- part 6 (button)
-- low flags: 00
-- high flags: A002
-- rect: left=108 top=54 right=76 bottom=208
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: SetNameLock
----- HyperTalk script -----
on mouseUp
answer file "Choose a file to examine:"
put it into appname
if appname = "" then exit to hypercard
answer "Change NameLock to what?" with getnamelock(appname) or not(getnamelock(appname))
if it = "" then exit mouseup
setnamelock appname,it
if the result ≠ "" then answer the result with "Sorry"
end mouseUp
-- part contents for card part 3
----- text -----
GetNameLock takes one parameter, the pathname of the file you want to examine. SetNameLock takes two parameters, the pathname of the file and true or false to set the nameLock.
Click on and/or examine the scripts of the buttons above to see how they work!
This external is free for purely personal use. A license fee of $10.00 is required if you use this external in any “in-house” corporate, shareware or freeware products. The license fee for unlimited commercial use in a SINGLE “for sale” product is $25.00. The license fee for unlimited commercial use with MULTIPLE products is $100.00.
Permission is hereby granted to all groups who distribute demo software, either for profit (such as EduCorp) or not for profit (such as a Macintosh Users Group), to include this file in their collection. My goal is to get as much exposure for my products as possible, and I believe that these groups offer an invaluable service to shareware publishers like myself.
If you have questions or comments we can be reached through the following: